package model.semantics;

import model.State;

/**
 * Represents a function label, such as the foo in "to foo [...]." Throws an
 * UnsupportedOperationException because it needs to be in the node queue, but
 * should never be called.
 * 
 * @author Sterling Dorminey
 * 
 */
public class LabelNode<T> extends Node<T> {
    private String myLabel;

    public LabelNode(String label) {
        myLabel = label;
    }

    public String getLabel() {
        return myLabel;
    }

    @Override
    public T evaluate(State<T> state) {
        throw new UnsupportedOperationException();
    }

}
